package com.syy.quartz.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class Init implements CommandLineRunner {

    @Autowired
    JobManager jobManager;

    @Override
    public void run(String... args) throws Exception {
        jobManager.addJob("123456");
    }
}
